package com.cn.crmsystem.mapper.approveMapper;

import com.cn.crmsystem.pojo.Approve;
import com.cn.crmsystem.pojo.Leave;
import com.cn.crmsystem.pojo.Travel;
import com.cn.crmsystem.pojo.User;

import java.util.List;

public interface LeaveMapper {
	//请假表插入
	int InsertLeave (Leave leave);
	//关联插入审批表
	int InsertApprove (Integer leader,Integer Leaveid,Integer type);
	//通过拒绝 update Leave表
	int UpdateLeave(Integer appid,Integer state);
	//领导名查询
	User selectleader(Integer leaderid);
	//我发出查询请假列表
	List<Approve> selectMYLeave (Integer userid);
	//待我审核列表
	List<Approve> selectApproveLeave (Integer userid);
	//领导id查询
	Integer selectleaderId(Integer userid);
	//删除请假表
	int DeleteLeave (Integer Leaveid);
	//请假id查询
	int Leaveid(Integer appid);
	//删除审核表
	int DeleteApprove (Integer appid);
	//我的条件查询
	List<Approve> selectMyCondition(Integer userid, String state);
	//我审核条件查询
	List<Approve> selectApproveCondition(Integer userid, String state);
}
